<template>
  <div class="content">
    <div class="image">
      <img :src="require('../assets/logo2.png')" alt />
      <div class="logoName">
        <img :src="require('../assets/logoName.png')" alt />
      </div>
    </div>
    <van-button block class="btn" @click="gobusword()">立即乘车</van-button>
    <div class="title">更多功能</div>
    <div class="list">
      <div class="item" @click="$router.push('/line')">
        <img src="../assets/item_2.png" alt />
        <span>支持路线</span>
      </div>
      <div class="item" @click="$router.push('/log')">
        <img src="../assets/item_3.png" alt />
        <span>使用记录</span>
      </div>
      <div class="item" @click="$router.push('/serviceSet')">
        <img src="../assets/item_4.png" alt />
        <span>服务设置</span>
      </div>
      <div class="item">
        <img src="../assets/item_6.png" alt @click="$router.push('/help')" />
        <span>使用帮助</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      logo2: ""
    };
  },
  methods: {
    go() {
      history.go(-1);
    },
    gobusword() {
      this.$router.push("/busword");
    }
  }
};
</script>

<style lang="scss" scoped>
.content {
  font-family: PingFangSC-Medium, PingFang SC;
  box-sizing: border-box;
  .image {
    position: relative;
    .logoName {
      position: absolute;
      width: 100%;
      left: 0;
      top: 20px;
      text-align: center;
      img {
        height: 20px;
      }
    }
  }
  .btn {
    background: linear-gradient(137deg, #318bff 0%, #1876ff 100%);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 15px 0 33px 0;
  }
  .title {
    margin: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
  }
  .list {
    display: flex;
    // justify-content: space-between;
    flex-wrap: wrap;
    .item {
      width: calc(100% / 3);
      display: flex;
      flex-flow: column;
      align-items: center;
      margin-bottom: 17px;
      img {
        width: 47px;
        height: 47px;
        margin-bottom: 4px;
      }
    }
  }
}
</style>